package com.reny.ll.git.mvvm

import com.alibaba.android.vlayout.layout.SingleLayoutHelper
import com.reny.ll.git.mvvm.recycler.BaseDelegateAdapter
import com.reny.ll.git.mvvm.recycler.BaseViewHolder


//通常RecyclerView 做为页面主体  加载完后底部没有空间  感觉很拥挤  SpaceAdapter就是增加一点空白空间
class SpaceAdapter(var noMoreTip:String?) : BaseDelegateAdapter<String>(
    SingleLayoutHelper(),
    R.layout.item_view_space,
    1
) {
    override fun convert(holder: BaseViewHolder, item: String?, position: Int) {
        holder.setText(R.id.tv_noMore, noMoreTip ?: "")
    }
}